/**
 * 
 */
package org.cuatrovientos.loops;

import java.util.Scanner;

/**
 * prints * times
 * @author unai_inigo
 *
 */
public class LoopsExercise2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	int number = 0;
	Scanner reader = new Scanner(System.in);
	String line = "";
	
	System.out.println("entera number: ");
	line = reader.nextLine();
	number = Integer.parseInt(line);
	
	if (number > 0 && number % 2 == 0){
		for (int i=0; i<number; i++){
			System.out.print("*");
		}
    }else{
			System.out.println("number must be even and positive");
			System.exit(0); /* end with code 0 */
			
			
		}
	reader.close();
	}
	
	}


